projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
775d591
)
imx: mx6: ddr add an entry ddr_type for mx6_ddr_sysinfo
author
Peng Fan
<
[email protected]
>
Mon, 17 Aug 2015 08:11:02 +0000
(16:11 +0800)
committer
Stefano Babic
<
[email protected]
>
Wed, 2 Sep 2015 13:34:12 +0000
(15:34 +0200)
Add ddr_type entry for mx6_ddr_sysinfo. It will be used for
differenrate DDR3 and LPDDR2.
Introduce an enum type for ddr_type.
Signed-off-by: Peng Fan <
[email protected]
>
Cc: Stefano Babic <
[email protected]
>
Cc: Tim Harvey <
[email protected]
>
arch/arm/include/asm/arch-mx6/mx6-ddr.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/arch-mx6/mx6-ddr.h
b/arch/arm/include/asm/arch-mx6/mx6-ddr.h
index b7bae7b17f9baf1e5bb2a7806734255650abc685..806fafb0690074fd348daa84a8d3c37a05ea3d2f 100644
(file)
--- a/
arch/arm/include/asm/arch-mx6/mx6-ddr.h
+++ b/
arch/arm/include/asm/arch-mx6/mx6-ddr.h
@@
-30,6
+30,11
@@
#endif /* CONFIG_MX6Q */
#else
+enum {
+ DDR_TYPE_DDR3,
+ DDR_TYPE_LPDDR2,
+};
+
/* MMDC P0/P1 Registers */
struct mmdc_p_regs {
u32 mdctl;
@@
-387,6
+392,7
@@
struct mx6_ddr_sysinfo {
u8 rst_to_cke; /* Time from SDE enable to CKE rise */
u8 sde_to_rst; /* Time from SDE enable until DDR reset# is high */
u8 pd_fast_exit;/* enable precharge powerdown fast-exit */
+ u8 ddr_type; /* DDR type: DDR3(0) or LPDDR2(1) */
};
/*